﻿using System;
using System.Text;
using Terraria.ModLoader;

namespace 积分商店扩展
{
	public class 积分商店扩展 : Mod
	{
		public override void PostSetupContent()
		{
            if (ModLoader.TryGetMod("PointShop", out Mod mod) && ModLoader.TryGetMod("CalamityMod", out Mod Mod))
            {
                mod.Call(
                [
                    "AddShopItemByFile",
                    Mod,
                    Encoding.UTF8.GetString(ModContent.GetFileBytes("积分商店扩展/ShopData/data_calamity.yaml"))
                ]);
            }
        }
	}
}
